﻿namespace Digitalmes.Domain.Entities.Mes.Productions;

/// <summary>
/// 工步过点数据
/// </summary>
[SugarTable("prod_workstep_data")]
public sealed class ProdWorkstepData : EntityBase
{
    /// <summary>
    /// 产品数据过点信息 Id。
    /// </summary>
    [SugarColumn(ColumnDescription = "产品存档信息Id")]
    public long WorkstepId { get; set; }

    /// <summary>
    /// 存档主数据
    /// </summary>
    [NotNull]
    [Navigate(NavigateType.OneToOne, nameof(WorkstepId))]
    public ProdWorkstep? Workstep { get; set; }

    /// <summary>
    /// 工序类型编号。
    /// </summary>
    public string? ProcTypeCode { get; set; }

    /// <summary>
    /// 工序类型名称。
    /// </summary>
    public string? ProcTypeName { get; set; }
}
